package com.it.pojo.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("merchant")
public class Merchant<T> implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer merchantCategoryId;
    /**
     * 商户账号
     */
    private String username;
    /**
     * 商户密码
     */
    private String password;
    /**
     * 商户名称
     */
    private String name;
    /**
     * 商户logo
     **/
    private String picture;
//    营业状态
    private Integer businessStatus;

    private Integer diliveryFee;//配送费

    private Integer minOrderAmount;//最低起送价

    private String announcement;

    private String address;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    private List<Dish> goods;

    private List<Category> categories;

    private String phone;

}
